<script type="text/javascript">
 $(function () {
	var url = '${contextPath}script/inv/invStorage.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			var page = sys_fill_parm('queryinvStorageForm');
			query_invStorage(page);
		}
	});
	$('#queryinvStorageForm').find("input:checkbox, input:radio").not('input.ibtn').uniform();
 });
 function exportExcel() {
	window.location.href = "${contextPath}m/invStorage-excelExport.html?" + $('#queryinvStorageForm').serialize();
	return false;
}
</script>

<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>

<form id="queryinvStorageForm">
	<table class="search_term_table">
		<tr>
			<th style="width:60px;">商品名称</th>
			<td><input name="cname" type="text" style="width:100px;"/></td>
			<th style="width:40px;">仓库</th>
			<td><input name="dname" type="text" style="width:100px;"/></td>
			<th style="width:60px;">所属机构</th>
			<td><input type="text" name="on" style="width: 100px;"/></td>
			<td style="text-align:right;">
				<a class="btn btn-info" onclick="javascript: query_invStorage();return false;"><i class="icon-search"></i>查询</a>
				<a class="btn btn-info" onclick="javascript: exportExcel(); return false;"><i class="icon-file"></i> 导 出</a>
			</td>
		</tr>
		<tr>
			<td colspan="7" style="text-align:right;">
				<a class="btn btn-success" onclick="javascript: sys_load_handle('invStorage-in'); return false;"><i class="icon-file"></i>入库</a>
				<a class="btn btn-write" onclick="javascript: sys_load_handle('invStorage-out');return false;"><i class="icon-share"></i>出库</a>
			</td>
		</tr>
	</table>
</form>
<div id="ResultList"></div>
